<?php 
session_start();
//$active = 'account';
$active = 'myrealivent';

require("../db/opendb.php");
//echo $_SESSION["role"];
$query = "select * from Users where Username='".$_SESSION["username"]."'";
$result = mysql_query($query) or die ("SQL Error".mysql_error());
$row=mysql_fetch_assoc($result);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>My Realivent -- Access to your real estate control panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="style.css">
<script type="application/x-javascript">
<!--
function install (aEvent)
{
  var params = {
    "News_button@realivent.com": { URL: aEvent.target.href,
             IconURL: aEvent.target.getAttribute("iconURL"),
             toString: function () { return this.URL; }
    }
  };
  InstallTrigger.install(params);
	
  return false;
}
-->
</script>
</head>

<body>
<CENTER>

<table width="1000" border="0" cellspacing="0" cellpadding="0">
<TR>
	<TD><?php include('account_header.php'); ?></TD>
</TR>
  <tr>
    <td valign="top" style="height:300px;">
	<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="250" valign="top" align="left">
	<Div style="padding:10px 0px 0px 00px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:20px; color:#666666">
	  <?php //include("menu.php");?>
      </Div>
	  <div style="padding-top:10px; " align="center">
	   <!--<a href=get_button.php id=banner><img border="0" src=../images/realivent_button_banner.gif></a>-->
	  </div></td>
    <td width="750" valign="top" align="left"><Div class="style11" style="padding:10px 0px 0px 30px; font-family:Verdana, Arial, Helvetica, sans-serif;">
	<div style="font-size:18px; color:#FF6600; padding:20px; ">Install the Realivent News Button</div>
	<div>
	<div>To install this button, you need Firefox. <script type="text/javascript"><!--
google_ad_client = "pub-2163952417443596";
google_ad_width = 110;
google_ad_height = 32;
google_ad_format = "110x32_as_rimg";
google_cpa_choice = "CAAQ7dSXhAIaCJqvuMO26aj7KOP143Q";
google_ad_channel = "9872782008";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
	<ul style="padding:5px;S ">
	<strong>This button will allow you to:</strong>
	<LI>Add news articles to Realivent directly from the webpage in just a couple clicks!</LI>
	<LI>If the news article is already submitted to Realivent, you can rate it or comment it!</LI>
	
	</ul>
	</div>
<?php 	if(!isset($_SESSION['username']))
{
$redirect = '/accounts/get_code.php';
?>
	<a style="color:#FF6600;" href='../require_login.php?redirect=<?php echo $redirect ?>'><div style="font-size:18px; color:#FF6600; padding:20px; ">You have to login to get the Realivent button</a> | <a style="color:#FF6600;" href='../register/register.php'>New Member Sign-up</div></a>
<?
}
else
{
?>
			<a href='button/complete_buttons/<?php echo md5($_SESSION['id']) ?>.xpi' iconURL="button/star.gif" onClick="return install(event);"><img align="absmiddle" border="0" src=button/star.gif> Install Extension!</a>
 <?
 }
 ?>  
	<div style="padding:20px; ">- After you install the button, and restart Firefox.<BR>
	- Click on 'view->toolbars->customize' from the menu. <br>
	- Then drag the new Realivent button to your Firefox toolbar. <br>
	- You can place it anywhere on the toolbar<BR><div style=" padding-top:5px;"><img style="border:1px solid black;" border="0" src=../images/button_show.gif></div></div>
	
	
	<div style="padding:20px; ">- When you get to a real estate webpage that you like.<BR>
	- Click on the Realivent button to open the 'Add News Window'.<br>
	- You can add some information or just click submit, and your done!<br>
	- If the webpage has already been submitted, you will get the chance to add a comment and rate it
	<BR><a href=../images/button_frame_show_full.gif>enlarge full picture</a>
	<BR><div style=" padding-top:5px;"><img style="border:1px solid black;" border="0" src=../images/button_frame_show.gif></div></div>
	</DIV></td>
  </tr>
  <tr>
    <td valign="top" align="left">&nbsp;</td>
    <td valign="top" align="left">
		
	</td>
  </tr>
</table>

		
	</td>
  </tr>
</table>
<?php include('../footer.php'); ?>
</body>
</html>
<?php require("../db/closedb.php");?>